package com.his.back.dao;

import com.his.back.pojo.member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("memberMapper")
public interface memberMapper {
    /**
     * find like content
     */
    member find(String contnet);

    List<member> searchPatient(String content);

    List<member> getUserMemberList(@Param("userId") String userId, @Param("stateId") int stateId);

    List<member> getDeptMemberList(@Param("deptId") String deptId, @Param("stateId") int stateId);

    int updatePatientInfo(String patientId, String patientInfo);

    int updatePatientSolve(String patientId, String solveXi, String solveZhong);

    String selectSolveXi(String patientId);

    String selectSolveZhong(String patientId);

    int updateMemberState(String patientId);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(String patientId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    int insert(member record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    int insertSelective(member record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    member selectByPrimaryKey(String patientId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(member record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(member record);
}